/*
 * @Author: your name
 * @Date: 2022-03-26 22:17:37
 * @LastEditTime: 2022-04-13 20:06:16
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \drivingTow\src\practice\dto\update-practice.dto.ts
 */
import { ApiProperty, ApiPropertyOptional, PartialType } from '@nestjs/swagger';
import { IsNotEmpty, IsNumber } from 'class-validator';
import { CreatePracticeDto } from './create-practice.dto';

export class UpdatePracticeDto extends PartialType(CreatePracticeDto) {
  @ApiPropertyOptional({ description: '8点' })
  readonly Eight: string;

  @ApiPropertyOptional({ description: '10点' })
  readonly ten: string;

  @ApiPropertyOptional({ description: '12点' })
  readonly twelve: string;

  @ApiPropertyOptional({ description: '14点' })
  readonly fourteen: string;

  @ApiPropertyOptional({ description: '16点' })
  readonly sixteen: string;

  @IsNotEmpty()
  @ApiProperty({ description: '教练员' })
  readonly coach: string;

  @IsNotEmpty()
  @ApiProperty({description:'科目分类'})
  readonly catogary:string;

  @IsNotEmpty()
  @ApiProperty({ description: '建表时间' })
  readonly create_time: string;
}

export class selectPraticeDto{
  @IsNotEmpty()
  @ApiProperty({ description: '建表时间' })
  readonly create_time: string;
}
export class selectAllPraticeDto{
  @IsNotEmpty()
  @ApiProperty({ description: '每页显示的条数' })
  readonly pageSize: number;

  @IsNotEmpty()
  @ApiProperty({ description: '当前页数' })
  readonly pageNum: number;
}

export class getMenegerPracticeDto{

  @ApiPropertyOptional({ description: '教练员' })
  readonly coach: string;

  @ApiPropertyOptional({ description: '建表时间' })
  readonly create_time: string;

  @ApiPropertyOptional({ description: '类型' })
  readonly catogary: string;

  @IsNotEmpty()
  @ApiProperty({ description: '每页显示的条数' })
  readonly pageSize: number;

  @IsNotEmpty()
  @ApiProperty({ description: '当前页数' })
  readonly pageNum: number;
}

export class CancelProcticeDto{
  @IsNotEmpty()
  @ApiProperty({ description: '教练员' })
  readonly coach: string;

  @IsNotEmpty()
  @ApiProperty({ description: '建表时间' })
  readonly create_time: string;

}